LOOKUP%
BASIC_INDEX%

Syntax: LOOKUP% (search$)
   and: BASIC_INDEX% (search$)
Location: DIY Toolkit - Vol R (LOOKUP%)
          Turbo Toolkit (BASIC_INDEX%)

These functions expect you to pass a string parameter which contains a name used by the SuperBASIC interpreter.  This name can be a machine code Procedure orFunction (such as are described here in this manual), or a SuperBASIC variable, PROCedure or FuNction.

If the specified name is recognised then LOOKUP% returns the number of its entry in the name list.  If the name is not recognised, then the value -7 is returned.

BASIC_INDEX% is similar, but returns -12 if the specified search$ does not exist and -7 if there is a mismatch between table entries.

Example:
PRINT LOOKUP% ('PRINT') 
will return 0 on most QL ROMs as this is normally the first name in the name list.

CROSS-REFERENCE:
See ELIS, KEY_ADD.
_NAME$ allows you to look at the name list.
